package br.unifesp.lma.chamada.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import br.unifesp.lma.chamada.model.entity.Disciplina;

@Repository
public class DisciplinaDAO extends BaseDAO<Disciplina>{

	protected DisciplinaDAO() {
		super(Disciplina.class);
	}

	public List<Disciplina> listByProfessor(Long professorId) {
		return super.query().filter("professorId", professorId).list();
	}
}
